<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>广告位管理</title>
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <link rel="stylesheet" href="./css/advertise/advertise.css">
  <!-- 字体图标 -->
  <link rel="stylesheet" href="./adver-font/iconfont.css">
  <script src="./js/axios.js"></script>
</head>

<body>
  <!-- 卡片面板 -->
  <div class="layui-card">
    <div class="layui-card-body">
      <!-- 头部表单部分 -->
      <form class="layui-form" action="" id="formInput">
        <div class="layui-form-item input-text">
          <label class="layui-form-label label-text">广告位名称</label>
          <div class="layui-input-block">
            <input type="text" name="advposname" required lay-verify="required" placeholder="请输入广告位名称"
              autocomplete="off" class="layui-input ">
          </div>
        </div>
        <button class="layui-btn  layui-btn-normal layui-btn-sm" id="searchFrom"><i
            class="layui-icon layui-icon-search"></i>
          搜索</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm" id="chongzhi"><i
            class="layui-icon layui-icon-refresh"></i>重置</button>
      </form>

      <!--头部新增 action-box -->
      <div class="action-box">

        <!-- 左侧新增导出按钮 -->
        <div class="headerLeft">
          <button class="add">+新增</button>
          <button class="daochu"><i class="layui-icon layui-icon-download-circle"> </i>导出</button>
        </div>


        <!-- 右侧按钮 -->
        <div class="rightHeader">
          <div class="Rightbt"> <i class="iconfont icon-arrow-up-bold"> </i> </div>
          <div class="Rightbt"> <i class="iconfont icon-shuaxin"> </i> </div>
          <div class="Rightbt"> <i class="iconfont icon-modular"> </i> </div>
        </div>
      </div>

      <!--表格渲染部分  -->
      <table class="layui-table">
        <colgroup>
          <col width="25">
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead>
          <tr>
            <th><strong>#</strong></th>
            <th> <strong> 广告位名称</strong></th>
            <th> <strong> 广告位描述</strong></th>
            <th> <strong> 广告图数量</strong></th>
            <th> <strong> 广告位尺寸</strong></th>
            <th> <strong> 操作</strong></th>
          </tr>
        </thead>
        <tbody>
          <!-- <tr>
            <td>222</td>
            <td>人生</td>
            <td>人生就像是一场修行</td>
            <td>556</td>
            <td>人生就像是一场修行</td>
            <td>
              <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="xiugai">
                <i class="layui-icon">&#xe642;</i>
              </button>
              <button type="button" class="layui-btn  layui-btn-danger layui-btn-sm " id="shangchu">
                <i class="layui-icon">&#xe640;</i>
              </button>
            </td>
          </tr> -->
        </tbody>
      </table>

      <!-- 分页盒子 -->
      <div id="page-box"></div>
    </div>
  </div>

  <!-- 添加类弹框模板 -->
  <script type="text/html" id="tplAdd">
    <form class="layui-form" action="" id="add-form">
      <div class="layui-form-item">
        <label class="layui-form-label">
          <span style="height: 10px; line-height: 10px; margin-right: 4px; color: red;">*</span> 广告位名称      
        </label>
        <div class="layui-input-block">
          <input type="text" name="advposname" required  lay-verify="required" placeholder="请输入广告位名称" autocomplete="off" class="layui-input" id="advposname">
        </div>
      </div>

      <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">
          <span style="height: 10px; line-height: 10px; margin-right: 4px; color: red;">*</span> 广告位描述
        </label>
        <div class="layui-input-block">
          <textarea name="advposdesc" placeholder="请输入广告位描述" class="layui-textarea" id="advposdesc"></textarea>
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">
          <span style="height: 10px; line-height: 10px; margin-right: 4px; color: red;">*</span> 广告位尺寸        
        </label>
        <div class="layui-input-block">
          <input type="text" name="advpossize" required  lay-verify="required" placeholder="请输入广告位尺寸" autocomplete="off" class="layui-input" id="advpossize">
        </div>
      </div>

      <div class="layui-form-item">
        <div class="layui-input-block" id="weizhi">
          <button type="reset" class="layui-btn layui-btn-primary">取消</button>
          <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">确定</button>
        </div>
      </div>
     </form> 
  </script>

  <!-- 编辑类弹框模板 -->
  <script type="text/html" id="tplEdit">
    <form class="layui-form" action="" id="edit-form" lay-filter="edit_form">
      <!-- 接口文档需要 id 值， 设置 input 框获取id后隐藏 -->
       <input type="hidden" name="id">
      <div class="layui-form-item">
        <label class="layui-form-label">
          <span style="height: 10px; line-height: 10px; margin-right: 4px; color: red;">*</span> 广告位名称      
        </label>
        <div class="layui-input-block">
          <input type="text" name="advposname" required  lay-verify="required" placeholder="请输入广告位名称" autocomplete="off" class="layui-input">
        </div>
      </div>

      <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">
          <span style="height: 10px; line-height: 10px; margin-right: 4px; color: red;">*</span> 广告位描述
        </label>
        <div class="layui-input-block">
          <textarea name="advposdesc" placeholder="请输入广告位描述" class="layui-textarea"></textarea>
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label">
          <span style="height: 10px; line-height: 10px; margin-right: 4px; color: red;">*</span> 广告位尺寸        
        </label>
        <div class="layui-input-block">
          <input type="text" name="advpossize" required  lay-verify="required" placeholder="请输入广告位尺寸" autocomplete="off" class="layui-input">
        </div>
      </div>

      <div class="layui-form-item">
        <div class="layui-input-block" id="weizhi">
          <button type="reset" class="layui-btn layui-btn-primary">取消</button>
          <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">确定</button>
        </div>
      </div>
    </form> 
  </script>

  <script src="./lib/layui/layui.all.js"></script>
  <script src="./js/jquery.min.js"></script>
  <!-- <script src="./js/baseApi.js"></script> -->
  <script src="./js/advertise/baseAPI.js"></script>
  <script src="./js/advertise/adver-position.js"></script>
</body>

</html>